// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) definits fieldsfirst ansi space safe 
// Source File Name:   TimeOut.java

package jones.behavior;

import jones.SimObject;

public class TimeOut
    implements SimObject
{

    private double time = 0;
    private double startTime = 0;

    public TimeOut()
    {
        time = 0.0D;
        startTime = 0.0D;
    }

    public void update(double time)
    {
        this.time += time;
    }

    public void start()
    {
        startTime = time;
    }

    public boolean isPast(double duration)
    {
        return time - startTime >= duration;
    }
}
